using System;
using System.Data;

namespace YY.Basic.DB
{
	
	public abstract class RowRelateObj
	{
		protected DataRow mRow;
        protected string _Err = string.Empty;

		public RowRelateObj(DataRow oRow)
		{
			this.mRow=oRow;
		}

        public string ErrorInfor
        {
            get { return _Err; }
        }

		public virtual DataRow Row
		{
			get
			{
				return this.mRow;
			}
		}

		public virtual void KillSelf()
		{
			if(this.mRow!=null)
			{
				this.mRow.Delete();
			}
		}
	}
}
